Automattic\WooCommerce\StoreApi\Routes\V1\Checkout A

Total Complexity 75
Dependencies 14
Dependents 1
Total lines 859
Lines of code 407
Logical lines of code 175
Comment lines 360
Methods 23
Properties 1

Methods 23

Method Rating Maintainability Complexity Lines of code
get_response()
A
52 8 24
create_customer_account()
A
47 7 36
create_or_update_draft_order()
S
45 5 46
map_create_account_error()
S
62 7 12
update_customer_from_request()
S
55 6 18
process_customer()
S
50 5 30
should_create_customer_account()
S
60 5 15
get_request_payment_method()
S
52 4 26
get_request_payment_data()
S
61 4 12
get_route_post_response()
S
48 2 40
process_payment()
S
57 3 15
prepare_item_for_response()
S
59 3 13
get_args()
S
48 1 39
update_order_from_request()
S
53 1 27
get_route_error_response()
S
64 2 10
get_route_error_response_from_object()
S
70 2 6
add_data_to_error_object()
S
66 2 8
get_request_payment_method_id()
S
75 2 4
get_request_payment_method_title()
S
75 2 4
get_route_response()
S
65 1 10
process_without_payment()
S
71 1 6
requires_nonce()
S
82 1 3
get_path()
S
82 1 3